<template>
  <div >
      <router-view></router-view>
      <footerNav v-if="is_show"></footerNav>
  </div>
</template>

<script>
//  import footerNav from './components/footerNav.vue'
// 在vue中 @代表 src  引入的 快捷给你配置好的方式 
 import footerNav from '@/components/footerNav.vue'
export default {
 
  props:[],
  components: {
   footerNav
  },
  data() {
    return {
       is_show:true
    };
  },
  
  methods: {},
 
  computed: {},
 
  watch: {},
 
  filters: {},
 
  beforeCreate() {},
 
  created() {
    this.eventbus.$on('footnav',(flag)=>{
        this.is_show = flag
    })


      this.eventbus2.$on('rocket1',(flag1)=>{
        console.log('falg1',flag1)
    })
  },
 
  beforeMount() {},
 
  mounted() {},
 
  beforeUpdate() {},
 
  updated() {},
 
  beforeDestroy() {},
 
  destroyed() {},
}
</script>


<style  lang='scss'>
@import "./assets/scss/reset.scss";
</style>
